import Vue from 'vue';
import App from './App.vue';
import ElementUI from 'element-ui';
import Message from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router/index';
import store from './store';
import api from './api';
import JsEncrypt from 'jsencrypt'
Vue.prototype.$jsEncrypt = JsEncrypt
Vue.prototype.$bus = new Vue(); // 设置 挂载至 vue 的原型上
import MJYUI from '@/components/index';
Vue.use(MJYUI);


import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css'
// use
Vue.use(mavonEditor)

store.commit("app/setApi", api);

Vue.use(ElementUI, {size: 'small'});
Vue.use(Message);


new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app');